package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品列表对象 sys_goods
 *
 * @author orange
 * @date 2022-04-09
 */
public class SysGoods extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /** 商品id */
  private Long goodsId;

  /** 商品的姓名 */
  @Excel(name = "商品的姓名")
  private String goodsName;

  /** 仓货序列 */
  @Excel(name = "仓货序列")
  private Long stockId;

  /** 商品的剩余数量 */
  @Excel(name = "商品的剩余数量")
  private Long quantity;

  /** 商品的图示 */
  @Excel(name = "商品的图示")
  private String goodsPicture;

  /** 商品所属的类别 */
  @Excel(name = "商品所属的类别")
  private Long categoryId;

  /** 商品的价钱 */
  @Excel(name = "商品的价钱")
  private BigDecimal price;

  @Excel(name = "商品的属性")
  private String attribute;

  /** 是否显示 1显示 2 不显示 */
  @Excel(name = "是否显示 1显示 2 不显示")
  private Integer isShow;

  public String getAttribute() {
    return attribute;
  }

  public void setAttribute(String attribute) {
    this.attribute = attribute;
  }

  public Long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public Long getStockId() {
    return stockId;
  }

  public void setStockId(Long stockId) {
    this.stockId = stockId;
  }

  public Long getQuantity() {
    return quantity;
  }

  public void setQuantity(Long quantity) {
    this.quantity = quantity;
  }

  public String getGoodsPicture() {
    return goodsPicture;
  }

  public void setGoodsPicture(String goodsPicture) {
    this.goodsPicture = goodsPicture;
  }

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }

  public Integer getIsShow() {
    return isShow;
  }

  public void setIsShow(Integer isShow) {
    this.isShow = isShow;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("goodsId", getGoodsId())
        .append("goodsName", getGoodsName())
        .append("stockId", getStockId())
        .append("quantity", getQuantity())
        .append("goodsPicture", getGoodsPicture())
        .append("categoryId", getCategoryId())
        .append("createTime", getCreateTime())
        .append("updateTime", getUpdateTime())
        .append("price", getPrice())
        .append("isShow", getIsShow())
        .toString();
  }
}
